package cn.zysuyuan.item.controller;

import cn.zysuyuan.common.entity.PageResult;
import cn.zysuyuan.item.entity.CompanyEdition;
import cn.zysuyuan.item.service.CompanyEditionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-02-18 19:18
 */

@Api(tags = "药材公司归档管理")
@RestController
@RequestMapping("companyEdition")
public class CompanyEditionController {

    @Autowired
    private CompanyEditionService companyEditionService;

    @ApiOperation(value = "公司管理",notes = "公司管理")
    @GetMapping("companyEditionlist")
    public ResponseEntity<PageResult<CompanyEdition>> select(@RequestParam Map<String,Object> map) {
        PageResult<CompanyEdition> result = companyEditionService.selectList(map);
        return ResponseEntity.ok(result);
    }
}
